package com.moleq.models;

import com.moleq.db.DatabaseSchema;

public class ItemTareSetting {

	// CREATE TABLE t_item_tare_setting
	// (it_no INTEGER NOT NULL,
	// F01 varchar(20) NOT NULL,
	// it_tare_no integer NOT NULL,
	// create_datetime varchar(14) NOT NULL,
	// update_datetime varchar(14) NOT NULL,
	// PRIMARY KEY (it_no));
	//
	private int it_no;
	private String upc;
	private int it_tare_no;
	public String desc;
	public String value;
	private String create_datetime;
	private String update_datetime;

	public ItemTareSetting() {
	}

	public ItemTareSetting(int _it_no, String _upc, int _it_tare_no,String create_datetime,String update_datetime) {
		this.it_no = _it_no;
		this.upc = _upc;
		this.it_tare_no = _it_tare_no;
		this.create_datetime = create_datetime;
		this.update_datetime = update_datetime;
	}

	public int getIt_no() {
		return it_no;
	}

	public void setIt_no(int it_no) {
		this.it_no = it_no;
	}

	public String getUpc() {
		return upc;
	}

	public void setUpc(String upc) {
		this.upc = upc;
	}

	public int getIt_tare_no() {
		return it_tare_no;
	}

	public void setIt_tare_no(int it_tare_no) {
		this.it_tare_no = it_tare_no;
	}

	public String getCreate_datetime() {
		return create_datetime;
	}

	public void setCreate_datetime(String create_datetime) {
		this.create_datetime = create_datetime;
	}

	public String getUpdate_datetime() {
		return update_datetime;
	}

	public void setUpdate_datetime(String update_datetime) {
		this.update_datetime = update_datetime;
	}
	
	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	// (it_no INTEGER NOT NULL,
		// F01 varchar(20) NOT NULL,
		// it_tare_no integer NOT NULL,
		// create_datetime varchar(14) NOT NULL,
		// update_datetime varchar(14) NOT NULL,
		// PRIMARY KEY (it_no));
	public String toMGData(String Action) {
		String Result = Action + "|"
				+ DatabaseSchema.ItemTareSetting.SCHEMA_NAME + "|('" + getUpc() + "'," + getIt_tare_no() + ",'"
				+ getCreate_datetime() + "','" + getUpdate_datetime() + "')";
		//" + getIt_no() + ",
		return Result;
	}

}
